import MHeader from "./Header";
import MFooter from "./Footer";
import HoverList from "./HoverList";
import {
    Carousel,
    CarouselItem,
    Button,
    Dropdown,
    DropdownMenu,
    DropdownItem,
    Message
} from "element-ui";

export default {
    install(Vue) {
        // 注册 components
        Vue.component("mHeader", MHeader);
        Vue.component("mFooter", MFooter);
        Vue.component("hoverList", HoverList);
        Vue.component(Button.name, Button);
        Vue.component(Carousel.name, Carousel);
        Vue.component(CarouselItem.name, CarouselItem);
        Vue.component(Dropdown.name, Dropdown);
        Vue.component(DropdownMenu.name, DropdownMenu);
        Vue.component(DropdownItem.name, DropdownItem);
        Vue.component(Message.name, Message);
    }
};
